import react from "./images/react.png";
import vue from "./images/vue.png";
import "./less/style.less";
import "./less/index.less";
import "./iconfont/iconfont.css";

// 1
const img = new Image();
img.src = react;
document.body.appendChild(img);

// 2
const img2 = document.createElement("img");
img2.src = vue;
document.body.appendChild(img2);

// 3
document.querySelector("#myImg").innerHTML = "<img src='"+vue+"'/>";
console.log("vue",vue);
console.log("react",react);

// 4- 以下不支持
// document.querySelector("#myImg").innerHTML = "<img src='./images/vue.png'/>";

console.log("vue",vue);
console.log("react",react);



